<div class="info_header">
    Thông tin sản phẩm
</div>
<table cellpadding="0" cellspacing="0" width="750" class="table-overlay" align="left">
    <col style="width: 110px;">
    <col style="width: 650px;">
    <col style="width: 20px">
    <col style="width: 20px">
    <?php foreach ($aryProductOrder as $key => $value) { ?>
        <tr>
            <td class="product-img">
                <div id="product_image_<?php echo $value['product_order_product_id']; ?>">
                    <a href="<?php echo $root_page; ?>/sanpham/<?php echo $value['product_order_product_id']; ?>/<?php echo $value['product_order_product_name_filter']; ?>.html">
                        <img src="/public/images/upload/thumbnail/<?php echo $value['product_order_product_image']; ?>" border="0" align="middle">
                    </a>
                </div>
            </td>
            <td class="product_order_content">
                <div id="order_product_list_<?php echo $value['product_order_product_id']; ?>">
                    <div id="order_item_product_<?php echo $value['product_order_product_id']; ?>">
                        <div class="product-name">
                            <a  href="<?php echo $root_page; ?>/product/<?php echo $value['product_order_product_id']; ?>/<?php echo $value['product_order_product_name_filter']; ?>.html"><?php echo $value['product_order_product_name']; ?></a>
                        </div>
                        <div>
                            <span class="order_item_price">Giá nhập</span><span class="order_price"><?php echo number_format($value['product_order_product_price_in'], 0, ',', '.'); ?>&nbsp;VNĐ</span>
                        </div>
                        <div>
                            <span class="order_item_price">Giá bán</span>&nbsp;&nbsp;<span class="order_price"><?php echo number_format($value['product_order_product_price'], 0, ',', '.'); ?>&nbsp;VNĐ</span>
                        </div>
                        <div>
                            <span class="order_item_price">Số lượng</span>
                            <span class="order_item_price">
                                <input type="text" class="input-overlay w40p" disabled="" name="order_product_number_<?php echo $value['product_order_product_id']; ?>" id="order_product_number_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_total_product'];?>">
                            </span>
                            <span class="order_item_price">Đơn vị</span>
                            <span>
                                <input type="text" class="input-overlay w40p" disabled="" name="order_product_unit_<?php echo $value['product_order_product_id']; ?>" id="order_product_unit_<?php echo $value['product_id']; ?>" style="width: 40px;" value="<?php echo $value['product_order_product_unit'];?>">
                            </span>
                        </div>
                    </div>
                    <div id="edit_order_item_<?php echo $value['product_order_product_id']; ?>" class="hide">
                        <div class="frm_quick_edit_product">
                            <div class="product-name">
                                <span><input type="text" class="input-overlay w500p" name="order_product_title_<?php echo $value['product_order_product_id']; ?>" id="order_product_title_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_product_name']; ?>"></span>
                            </div>
                            <div>
                                <span class="order_item_tite">Giá nhập</span>
                                <span><input type="text" class="input-overlay w100p" name="order_price_vnd_in_<?php echo $value['product_order_product_id']; ?>" id="order_price_vnd_in_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_product_price_in']; ?>"></span>
                                <span class="order_item_tite">Số lượng</span>
                                <span><input type="text" class="input-overlay w100p" name="order_total_product_<?php echo $value['product_order_product_id']; ?>" id="order_total_product_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_total_product']; ?>"></span>
                            </div>
                            <div>
                                <span class="order_item_tite">Giá bán</span>
                                <span>
                                    <input type="text" class="input-overlay w100p" name="order_price_vnd_out_<?php echo $value['product_order_product_id']; ?>" id="order_price_vnd_out_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_product_price']; ?>">
                                </span>
                                <span class="order_item_tite">Đơn vị</span>
                                <span><input type="text" class="input-overlay w100p" name="order_product_unit_<?php echo $value['product_order_product_id']; ?>" id="order_product_unit_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_product_unit']; ?>"></span>
                            </div>
                            <div>
                                <span class="order_item_tite">&nbsp;</span>
                                <span><input type="button" class="submit" title="Chỉ cập nhật thông tin sản phẩm trong đơn hàng" value="Cập nhật đơn hàng" onclick="AdminController.quickEditProduct('<?php echo $value['product_order_product_id']; ?>', 'order', <?php echo $value['product_order_id'];?>)"></span>
                                <span><input type="button" class="submit" title="Cập nhật cả thông tin sản phẩm trong đơn hàng và trong danh sách sản phẩm" value="Cập nhật sản phẩm" onclick="AdminController.quickEditProduct('<?php echo $value['product_order_product_id']; ?>', 'orderandproduct', <?php echo $value['product_order_id'];?>)"></span>
                                <span><input type="button" class="submit" value="Hủy" onclick="AdminController.hideQuickEditProduct('<?php echo $value['product_order_product_id']; ?>', 'overlay');"></span>
                                <input type="hidden" name="order_product_category_id_<?php echo $value['product_order_product_id']; ?>" id="order_product_category_id_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_category_id']; ?>">
                                <input type="hidden" name="order_product_category_name_<?php echo $value['product_order_product_id']; ?>" id="order_product_category_name_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_category_name']; ?>">
                                <input type="hidden" name="order_product_image_<?php echo $value['product_order_product_id']; ?>" id="order_product_image_<?php echo $value['product_order_product_id']; ?>" value="<?php echo $value['product_order_product_image']; ?>">
                            </div>
                        </div>
                    </div>
                </div>
            </td>
            <td class="btn">
                <span class="cpointer" onclick="AdminController.showQuickEditProduct('<?php echo $value['product_order_product_id']; ?>', 'overlay');"><img src="/public/images/form/icon-edit.gif" title="Chỉnh sửa nhanh thông tin sản phẩm này"></span>
            </td>
            <td class="btn">
                <span class="cpointer btn_edit" onclick="AdminController.removeProductFromEditOrder('<?php echo $value['product_order_id'];?>','<?php echo $value['product_order_product_id']; ?>','<?php echo $customerId;?>');"><img src="/public/images/form/delete.png" title="Xóa sản phẩm này khỏi đơn hàng"></span>
            </td>
        </tr>
    <?php } ?>

</table>